.class Lrexsee/natives/RexseeJavaView$24;
.super Ljava/lang/Object;
.source "RexseeJavaView.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/natives/RexseeJavaView;->draw(Ljava/lang/String;Ljava/lang/String;ZZ)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/natives/RexseeJavaView;

.field private final synthetic val$commands:Ljava/lang/String;

.field private final synthetic val$debug:Z

.field private final synthetic val$viewTag:Lrexsee/natives/ViewTag;


# direct methods
.method constructor <init>(Lrexsee/natives/RexseeJavaView;Lrexsee/natives/ViewTag;Ljava/lang/String;Z)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/natives/RexseeJavaView$24;->this$0:Lrexsee/natives/RexseeJavaView;

    iput-object p2, p0, Lrexsee/natives/RexseeJavaView$24;->val$viewTag:Lrexsee/natives/ViewTag;

    iput-object p3, p0, Lrexsee/natives/RexseeJavaView$24;->val$commands:Ljava/lang/String;

    iput-boolean p4, p0, Lrexsee/natives/RexseeJavaView$24;->val$debug:Z

    .line 982
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .prologue
    .line 986
    :try_start_0
    iget-object v4, p0, Lrexsee/natives/RexseeJavaView$24;->val$viewTag:Lrexsee/natives/ViewTag;

    iget-object v4, v4, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast v4, Landroid/view/SurfaceView;

    invoke-virtual {v4}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v2

    .line 987
    .local v2, "holder":Landroid/view/SurfaceHolder;
    invoke-interface {v2}, Landroid/view/SurfaceHolder;->lockCanvas()Landroid/graphics/Canvas;

    move-result-object v1

    .line 988
    .local v1, "canvas":Landroid/graphics/Canvas;
    iget-object v4, p0, Lrexsee/natives/RexseeJavaView$24;->val$commands:Ljava/lang/String;

    const-string v5, "\\|"

    invoke-virtual {v4, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 989
    .local v0, "arr":[Ljava/lang/String;
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_0
    array-length v4, v0

    if-lt v3, v4, :cond_0

    .line 992
    invoke-interface {v2, v1}, Landroid/view/SurfaceHolder;->unlockCanvasAndPost(Landroid/graphics/Canvas;)V

    .line 996
    .end local v0    # "arr":[Ljava/lang/String;
    .end local v1    # "canvas":Landroid/graphics/Canvas;
    .end local v2    # "holder":Landroid/view/SurfaceHolder;
    .end local v3    # "i":I
    :goto_1
    return-void

    .line 990
    .restart local v0    # "arr":[Ljava/lang/String;
    .restart local v1    # "canvas":Landroid/graphics/Canvas;
    .restart local v2    # "holder":Landroid/view/SurfaceHolder;
    .restart local v3    # "i":I
    :cond_0
    new-instance v4, Lrexsee/core/style/CanvasSheet;

    iget-object v5, p0, Lrexsee/natives/RexseeJavaView$24;->this$0:Lrexsee/natives/RexseeJavaView;

    # getter for: Lrexsee/natives/RexseeJavaView;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v5}, Lrexsee/natives/RexseeJavaView;->access$0(Lrexsee/natives/RexseeJavaView;)Lrexsee/core/browser/Browser;

    move-result-object v5

    invoke-virtual {v5}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v5

    aget-object v6, v0, v3

    invoke-direct {v4, v5, v6}, Lrexsee/core/style/CanvasSheet;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    iget-boolean v5, p0, Lrexsee/natives/RexseeJavaView$24;->val$debug:Z

    invoke-virtual {v4, v1, v5}, Lrexsee/core/style/CanvasSheet;->draw(Landroid/graphics/Canvas;Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 989
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 993
    .end local v0    # "arr":[Ljava/lang/String;
    .end local v1    # "canvas":Landroid/graphics/Canvas;
    .end local v2    # "holder":Landroid/view/SurfaceHolder;
    .end local v3    # "i":I
    :catch_0
    move-exception v4

    goto :goto_1
.end method
